import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import Regist from '../components/Regist'
import User from '../components/user/User.vue'
import Home from '../components/Home.vue'

Vue.use(Router)

export default new Router({
	mode: 'history',
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/regist',
      name: 'Regist',
      component: Regist
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    }
  ]
})
